import request from '@/utils/request'

export function getRegionChildren(id) {
    return  request({
        url: '/util/getRegion/'+id,
        method: 'get',
    })
}

export function getRules(data) {
    return  request({
        url: '/rules/list',
        method: 'get',
        params:data
   })
}


//新增
export function addRules(data) {
  return request({
    url: '/rules/add',
    method: 'post',
    data: data
  })
}


//编辑
export function editRules(data) {
  return request({
    url: '/rules/edit',
    method: 'put',
    data: data
  })
}
